/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.basic.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.common.core.validate.group.AddGroup;
import com.hopes.bizz.common.core.validate.group.UpdateGroup;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * GPS设备
 *
 * @author pig
 * @date 2023-10-24 17:17:29
 */
@Data
@TableName(value = "closed_gps_device", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "GPS设备")
public class ClosedGpsDeviceEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 设备名称
	*/
    @Schema(description="设备名称")
	@NotBlank(message = "设备名称为必填项", groups = {AddGroup.class, UpdateGroup.class})
	@Length(max = 20, message = "设备名称最大长度为:20", groups = {AddGroup.class, UpdateGroup.class})
    private String deviceName;

	/**
	* 设备编码
	*/
    @Schema(description="设备编码")
	@NotBlank(message = "设备编码为必填项", groups = {AddGroup.class, UpdateGroup.class})
	@Length(max = 20, message = "设备编码最大长度为:20", groups = {AddGroup.class, UpdateGroup.class})
    private String deviceNo;

	/**
	* 是否启用
	*/
    @Schema(description="是否启用")
	@NotBlank(message = "是否启用为必填项", groups = {AddGroup.class, UpdateGroup.class})
	@Length(max = 1, message = "是否启用最大长度为:1", groups = {AddGroup.class, UpdateGroup.class})
    private String useFlag;

	/**
	* 是否绑定
	*/
    @Schema(description="是否绑定")
    private String bindFlag;

	/**
	* 绑定物流单ID
	*/
    @Schema(description="绑定物流单ID")
    private Long logisticsBillId;

	/**
	* 绑定物流单号
	*/
    @Schema(description="绑定物流单号")
    private String logisticsBillNo;

	/**
	* 联网状态
	*/
    @Schema(description="联网状态")
    private String networkStatus;

	/**
	* 设备状态
	*/
    @Schema(description="设备状态")
    private String deviceStatus;

	/**
	* 数据时间
	*/
    @Schema(description="数据时间")
    private Date dataTime;

	/**
	* 经度
	*/
    @Schema(description="经度")
    private String longitude;

	/**
	* 纬度
	*/
    @Schema(description="纬度")
    private String latitude;

	/**
	* 高度
	*/
    @Schema(description="高度")
    private String altitude;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;

}
